package com.itheima.list;

import java.util.ArrayList;
import java.util.Objects;

public class Zhan {
     ArrayList list=new ArrayList();
    public void yazhan(Object o){
        list.add(o);
    }

    public Object tanzhan(){
        Object o = list.remove(list.size() - 1);
        return o;
    }


}
